<?
if(PHOTOS_MUST){
    $data->photos->hasphoto = photos::check();
    define('HASPHOTO',$data->photos->hasphoto);
    if(!UNCONFIRMED && ACCESS && !$data->photos->hasphoto && (APP != 'profile' || CMD != 'photo')) {
        header('location: /'.LANG.'/profile/photo');
    } elseif(!UNCONFIRMED && ACCESS && !$data->photos->hasphoto){
        common::guide(GUIDE_ERROR, dgettext('photos','You must upload at least one profile photo to use the system!'));
    }
}
?>